<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>freemarker自定义标签</title>
</head>
<body>
    <#--自定义变量-->
    <#assign num="李莫愁">
    ${num}
    <#--自定义标签-->
    <@content name="李莫愁" age="11">
        ${output}
        ${append}
    </@content>
</body>
</html>